#define  _CRT_SECURE_NO_WARNINGS 1
int* findDisappearedNumbers(int* nums, int numsSize, int* returnSize) {
    int* arr = (int*)malloc(sizeof(int) * numsSize);
    int* pa = (int*)malloc(sizeof(int) * (numsSize + 1));
    for (int i = 0; i <= numsSize; i++)
        pa[i] = 1;
    for (int i = 0; i < numsSize; i++)
    {
        pa[nums[i]] = 0;
    }
    int k = 0;
    for (int i = 1; i < numsSize + 1; i++)
    {
        if (pa[i] == 1)
        {
            arr[k++] = i;
        }
    }
    *returnSize = k;
    return arr;
}